package cate.common.table.show.sheet;

import cate.common.table.ESheet;
import cate.common.table.show.row.PendantRow;
import easy.java.dev.note.NoteClass;

import java.util.ArrayList;
import java.util.List;

@NoteClass("荣誉挂件")
public class PendantSheet extends ESheet<PendantRow> {

    @Override
    public String getSheetName() {
        return "荣誉挂件";
    }



    public List<Integer> findCondition(List<Integer> activeList) {
        List<Integer> resultList = new ArrayList<>();
        for (PendantRow baseRow : this.getList()) {
            if (!activeList.contains(baseRow.tid) && baseRow.condition > 0) {
                resultList.add(baseRow.tid);
            }
        }
        return resultList;
    }
}
